jQuery().ready(function () {
	var container = new CreateItemContainer();
	jQuery("a.js_dt_button").each(function(i) {
		var _dtname = jQuery(this).attr("id").substr(3);
		var _dtb = new DocTypeButton(this, container);
		var _form = new Form(jQuery("#form-"+_dtname), container);
					
		container.addFormButton(_form, _dtb);
		
		if (_dtb.isSelected()) {
			container.setSelectedButton(_dtb);
		}
	});
	
});

